package com.qf.controller;

import com.qf.pojo.Teacher;
import com.qf.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @Author Zhy
 * Date on 2020/10/9  19:37
 * @description
 */
@RestController
@CrossOrigin
public class TeacherController {
    @Autowired
    TeacherService teacherService;

    @RequestMapping("/findAll1")
    public List<Teacher> findAll(){
        return teacherService.findAll();
    }
}

